package android.slc.user.ui.dept.adapter

import android.slc.extras.user.entity.SysDept
import android.slc.user.R
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.module.LoadMoreModule
import com.chad.library.adapter.base.viewholder.BaseViewHolder

/**
 * @author slc
 * @date 2020-08-24 16:18
 */
class DeptSingleAdapter(data: MutableList<SysDept>) :
    BaseQuickAdapter<SysDept, BaseViewHolder>(R.layout.user_item_dept_info_select_single, data),
    LoadMoreModule {
    private val deptBrowserProvider = DeptBrowserProvider()

    init {
        addChildClickViewIds(R.id.radioButton)
    }

    override fun convert(holder: BaseViewHolder, item: SysDept) {
        deptBrowserProvider.convert(holder, item)
    }

}